package com.weme.mine.view

import androidx.constraintlayout.widget.ConstraintLayout

import android.content.Context
import android.util.AttributeSet
import android.view.LayoutInflater
import android.widget.ImageView
import android.widget.TextView
import com.weme.mine.R

class SettingItemView @JvmOverloads constructor(
    context: Context,
    attrs: AttributeSet? = null,
    defStyleAttr: Int = 0
) : ConstraintLayout(context, attrs, defStyleAttr) {
    private val textView: TextView
    private val imageView: ImageView

    init {
        LayoutInflater.from(context).inflate(R.layout.setting_item_view, this, true)
        textView = findViewById(R.id.tvName)
        imageView = findViewById(R.id.imClickble)
    }

    fun setText(text: String) {
        textView.text = text
    }

//    fun setImage(resId: Int) {
//        imageView.setImageResource(resId)
//    }
}
